#ifndef _BL_TIME_H
#define _BL_TIME_H

#ident "$Id: time.h,v 1.1 2008/03/17 08:02:33 zhulin Exp $"




#include "types.h"




#define TICKS_PER_SECOND 32768



/* initialise timer */
void TimerInit(void);

/* time in second */
u32  TimerGetTime(void);

/* time in 1/100 second*/
u32  TimerGetCentiTime(void);

/* jiffies should be defined as volatile */
extern volatile unsigned long jiffies;
extern volatile unsigned long jiffies_div10;

void msleep(unsigned int ms);
void msleep_cli(unsigned int ms);

#endif
